import request from "@/utils/request";

export const addAdmin = async data => {
  return request({
    url: "/admin/add",
    method: "post",
    data
  });
};
export const deleteAdmin = async data => {
  return request({
    url: "/admin/delete",
    method: "get",
    params: data
  });
};
export const getAllAdmin = async data => {
  return request({
    url: "/admin/loadAllByQuery",
    method: "post",
    data
  });
};
